//
//  WGDiseaseAleartView.m
//  QuickCure1
//
//  Created by Apple on 16/11/4.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "WGDiseaseAleartView.h"

@interface WGDiseaseAleartView  ()
@property (weak, nonatomic) IBOutlet UIButton *btn_yaoWu;
@property (weak, nonatomic) IBOutlet UIButton *btn_baoShou;

@property(nonatomic,assign)BOOL isSel;

@end


@implementation WGDiseaseAleartView

+(instancetype)aleartView{
    
    return [[[NSBundle mainBundle]loadNibNamed:@"WGDiseaseAleartView" owner:nil options:nil]lastObject];
}

#pragma
#pragma mark - 药物治疗
- (IBAction)clickYaoWuButton:(UIButton *)sender {
          
    [self panDuanXuanZhongWithButton:sender];
    
    self.isTreat = YES;
    
    if (self.SelectedTreatTypeBlock) {
        
        self.SelectedTreatTypeBlock(sender);
        
    }
}
- (IBAction)clickBaoShouButton:(UIButton *)sender {
    
    self.isTreat = NO;

   [self panDuanXuanZhongWithButton:sender];
     if (self.SelectedTreatTypeBlock) {
        
        self.SelectedTreatTypeBlock(sender);
      
    }
 }

#pragma
#pragma mark -  判断选中治疗方式
-(void)panDuanXuanZhongWithButton:(UIButton*) sender{
    
    if (sender.isSelected == NO) {
        sender.selected= YES;
    }else{
        sender.selected = NO;
    }
}
@end
